/****************************************************
          File Name:12-4.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Fri 26 Dec 2014 03:18:59 PM CST
*****************************************************/

#ifndef STACK_H_
#define STACK_H_
#include<iostream>

typedef unsigned long Item;

class Stack
{
    private:
        enum { MAX = 10 };
        Item *pitems;
        int size;
        int top;
    public:
        Stack(int n = MAX);
        Stack(const Stack & st);
        ~Stack();
        
        bool isempty() const;
        bool isfull() const;

        bool push(const Item & item);
        bool pop(Item & item);
        Stack & operator=(const Stack & st);
};

#endif
